#pragma once
#include <stdint.h>
void backlight_init();
void disp_gpio_init();
void disp_rgb_init();

#define LCD_WIDTH 800
#define LCD_HIGHT 480

void disp_pixel(uint16_t x, uint16_t y, uint32_t color);
void disp_fill(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint32_t color);
void disp_clear(uint32_t color);
extern uint32_t lcd_gram[LCD_WIDTH * LCD_HIGHT];

#ifndef WORD
typedef unsigned short WORD;
#endif
uint32_t ARGB(WORD rgb565);